﻿@using A2.ERP.Models
@{
    List<t_Notice> noticeList = ViewBag.notices;
}
<section id="NoticeModule">
    <table class="table table-bordered">
        <thead>
            <tr>
                <th>编号</th>
                <th>标题</th>
                <th>发布者</th>
                <th>创建日期</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            @foreach (var notice in noticeList)
            {
                <tr>
                    <td>@notice.NoticeID</td>
                    <td>@notice.Title</td>
                    <td>
                        @notice.UserName
                    </td>
                    <td>
                        @notice.CreateDate
                    </td>                
                    <td>
                        <button class="btn btn-sm btn-success">
                            <i class="icon SkyUI icon-plus"></i>
                            添加
                        </button>
                        <button class="btn btn-sm btn-primary">
                            <i class="icon SkyUI icon-search"></i>
                            编辑
                        </button>
                        <button class="btn btn-sm btn-danger">
                            <i class="icon SkyUI icon-close"></i>
                            删除
                        </button>
                    </td>
                </tr>
            }
        </tbody>
    </table>
</section>

<script>
    ;
    !function () {

    }();
</script>